package com.msjh.vueservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.msjh.vueservice.entity.EduTeacher;
import com.msjh.vueservice.mapper.EduTeacherMapper;
import com.msjh.vueservice.service.EduTeacherService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 讲师 服务实现类
 * </p>
 *
 * @author byy
 * @since 2022-06-09
 */
@Service
public class EduTeacherServiceImpl extends ServiceImpl<EduTeacherMapper, EduTeacher> implements EduTeacherService {

    @Override
    public List<EduTeacher> getAllTeachers() {

        QueryWrapper<EduTeacher>queryWrapper = new QueryWrapper<>();
        List<EduTeacher> eduTeachers = this.baseMapper.selectList(queryWrapper);
        return eduTeachers;
    }
}
